import React from 'react';
import { useHistory } from 'react-router-dom';
import { Button } from 'antd';

export default function Hello() {
    const history = useHistory();
    return (
        <div>
            <h1>Hello world</h1>
            <Button type='primary' onClick={() => history.push('/about')}>跳转到about页面</Button>
        </div>
    );
}
